import request from '@/utils/request'

export const tablePostRequire = (server, params) => {
  return request({
    url: 'api/table/' + server,
    method: 'post',
    data: params
  })
}

export const tablePostRequireByForm = (server, params) => {
  return request({
    url: 'api/table/' + server,
    method: 'post',
    data: params,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}
